<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <style>
        html, body, #container {
            overflow: hidden;
            padding: 0;
            margin: 0;
            height: 100%;
            width: 100%;
        }

        .amap-icon img {
            width: 25px;
            height: 34px;
        }

        .amap-marker-label{
            border: 0;
            background-color: transparent;
        }

        .info{
            position: relative;
            top: 0;
            right: 0;
            min-width: 0;
        }
    </style>
</head>
<body>
<div id="container" style="width: 550px;height: 300px"></div>
<script>
    function onApiLoaded(){
        var map = new AMap.Map('container', {
            zoom: 20, //初始化地图层级
            center: [114.379408, 30.506575] //初始化地图中心点
        });
        var marker = new AMap.Marker({
            position: map.getCenter(),
            icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/poi-marker-default.png',
            offset: new AMap.Pixel(-13, -30)
        });
        marker.setMap(map);
        // label默认蓝框白底左上角显示，样式className为：amap-marker-label
        marker.setLabel({
            offset: new AMap.Pixel(10, 10),  //设置文本标注偏移量
            content: "<div class='info'>Sanhos中心医院</div>", //设置文本标注内容
            direction: 'right' //设置文本标注方位
        });
        map.plugin(["AMap.ToolBar"], function() {
            map.addControl(new AMap.ToolBar());
        });
    }
    var url = 'https://webapi.amap.com/maps?v=1.4.15&key=https://webapi.amap.com/maps?v=1.4.15&key=5607cb733196b3ad230f2150bbb4d427&callback=onApiLoaded';
    var jsapi = document.createElement('script');
    jsapi.charset = 'utf-8';
    jsapi.src = url;
    document.head.appendChild(jsapi);
</script>
</body>
</html>